<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>100课堂,网上平价英语学习专家,真人外教一对一在线英语学习</title>
<meta name="keywords" content="英语学习，在线外教一对一，在线英语学习，100课堂" />
<link rel="shortcut icon" href="favicon.ico" />
<link href="<?=SITE_URL?>user/css/public.css?v=<?=WEB_VERSION?>" rel="stylesheet" type="text/css" />
<link href="<?=SITE_URL?>user/css/Team.css?v=<?=WEB_VERSION?>" rel="stylesheet" type="text/css" />
<script src="<?=SITE_URL?>user/js/jquery-1.7.1.min.js?v=<?=WEB_VERSION?>" type="text/javascript" language="javascript"></script>
<script src="<?=SITE_URL?>user/js/windoRIGHT.min.js?v=<?=WEB_VERSION?>" type="text/javascript" language="javascript"></script>
<title>100课堂在线英语学习</title>
</head>
<body>
<?include('top.php')?>
<?include('banner.php')?>
<div class="CenterAuto">
	<?include('left.php')?>
    <div class="CenterRight">
    	<h3 style="text-align:center;padding-bottom:20px; font-size:24px; color:#333;">
		   <span>老师介绍</span>
		   <a style="Padding:4px 10px;display:width:60px;height: 40px;background: none repeat scroll 0% 0% rgb(254, 196, 37);line-height: 40px;color: rgb(255, 255, 255);text-align: center;font-size: 15px; position:relative; left:293px; top:10px;" 
		   	onClick="javaScript:back_list();">
		   	返回列表
		   </a>
    	</h3>
    	
		<dl class="TeachMessCon">
        	<dt><img src="<?=SITE_URL.getStr($extract_vars,'detail_portrait')?>" width="180" height="232" />
        	<div><?=getStr($extract_vars,'name')?>老师</div><a  href="javaScript:void(0);" onclick="collection()">收藏老师</a></dt>
            <dd><span>学员级别：</span>
                        <?
            foreach ($level as $k=>$v){
			?>
            <div <? if ($english_level==$k){echo 'class="Blu_jm"';} ?>><?=$v?></div>
            <?
			}
			?>      
            </dd>
            <dd><span>100经验值：</span>
             <?if($education_experience>1){?>
            	<img src="<?=SITE_URL?>user/images/xingxing<?=$education_experience?>.png" />
            <?}else{?>
                <img src="<?=SITE_URL?>user/images/xingxing.png" />
            <?}?>
            <em style="padding-left:40px;">学员口碑：</em>
            <img src="<?=SITE_URL?>user/images/xin3.jpg" />
            <em>+<?=$word_mouth?></em>
            </dd>
            <dd><span>教育经验：</span><?=$experience?>个月</dd>
            <dd><span>教学风格：</span><?=$teaching_style?></dd>
            <dd><span>擅长课程：</span><?=$good_course?></dd>
            <dd><span>兴趣爱好：</span><?=$hobby?></dd></dd>
            <div class="clearc"></div>
        </dl>
        <div class="TeachConMess">
        <h2>自我介绍：</h2>
		<object width="700" height="20" data="<?=SITE_URL?>user/swf/introplayer.swf" type="application/x-shockwave-flash">
           <param value="<?=SITE_URL?>user/swf/introplayer.swf" name="movie">
           <param value="file=<?=SITE_URL.$introduce?>" name="FlashVars">
		</object>
        <p><?=$introduce_english?></p>
        <h2>译文：</h2>
        <p><?=$introduce_chinese?></p>
        </div>
        <dl class="TeachTimeOut mt10">
        	<dt>
            <?
             if (getParamValue('page')!=0)			{?>
             <a href="<?="?".ClassManager::getToos()->combinationGet('page')."&page=0"?>" >上一页</a>
			 
			 <?
			}
			else{
			?>
             <a href="<?="?".ClassManager::getToos()->combinationGet('page')."&page=1"?>">下一页</a>
              <?
			}
			  ?>
              </dt>
                <?
                 $weekarray=array("日","一","二","三","四","五","六");  
       			 foreach($date as $v){
				?>

            		<dd><p><?=date('m月d日',$v)?> </p><p style="font-size: 14px;">(<?=$english_week[date("w",$v)]?>)<?="星期".$weekarray[date("w",$v)]; ?></p></dd>
            <?
				}
			?>
        
        </dl>
       <?
       foreach($time as $v){
	   ?>
        <dl class="TeachTimeOut2">
        	<dt><?=$v['name']?>-<?=$v['nextName']?></dt>
            <?
            foreach ($date as $v1){
			?>
            <dd>
            <?
			if (isset($startClassTime[$v['time']][$v1]['class_time_flg'])){
				$id=$startClassTime[$v['time']][$v1]['id'];
				echo '<input type="button" name="open"  value="    " class="OpeTer" onClick="javaScript:openClass(\''.$startClassTime[$v['time']][$v1]['open_date'].'\',\''.$startClassTime[$v['time']][$v1]['open_time'].'\',\''.$startClassTime[$v['time']][$v1]['teacher_id'].'\');">';
			}else{
				echo '<input type="button" name="close"  value=" " class="CloTer"';
			}
			?>
            </dd>
            <?
			}
			?>
        </dl>
        <?
        }
		?>
    </div>
    <div class="clearc"></div>
</div>
<?include('foot.php')?>
<script type="text/javascript" src="<?=SITE_URL?>user/js/teach.min.js?v=<?=WEB_VERSION?>"></script>
<script>
var site_url = '<?=SITE_URL?>';
function collection(){
	$.post(
		site_url+"user_collection.htm", {
			teacherId: '<?=getStr($extract_vars,'id')?>'
		},
		function (data){
			if (data =='1'){
				alert('收藏成功');
			}
			else{
				alert ('请登录');
			}
		}
	);
	
}
function back_list(){
	var referrer1 = site_url+'teacher.htm';
	var referrer2 = site_url+'user_teacherList.htm';
	var referre_url = document.referrer;
	if(referre_url.indexOf(referrer1)>0||referre_url.indexOf(referrer2)>0){
		if(referre_url.indexOf(referrer1)>0){
			location.href=referrer1;
		}
		if(referre_url.indexOf(referrer2)>0){
			location.href=referrer2;
		}
	}else{
		location.href=referrer1;
	}
}

function openClass(book_date,book_time,book_teacher){
	location.href=site_url+"user_booking.htm?book_date="+book_date+"&book_time="+book_time+"&book_teacher="+book_teacher;
}

</script>
</body>
</html>